package com.binarycube.webserver.config;

import java.util.HashMap;
import java.util.Map;


public class DataManagerConfig  {

	private Map<String, DatasourceConfig> datasources;
	
	public DataManagerConfig(){
		datasources = new HashMap<String, DatasourceConfig>();
	}
	
	
	public void addDatasource(DatasourceConfig dsc) {
		datasources.put(dsc.getName(), dsc);
	}
	
	
	public DatasourceConfig  getDatasource(String name){
		return datasources.get(name);
	}
}
